<?php echo form_open_multipart('training/do_upload/' . $trainingID);?>
<input type="file" name="userfile" size="20" />
<?php echo form_hidden('target', 'training/facturize_training/'); ?>

<?php echo form_submit('', 'Hochladen', 'class="btn btn-primary btn-mini"'); ?>

    <?php if($upload_error): ?>
        <span style="color:red;"><?php echo $upload_error;?></span>
    <?php endif; ?>

<?php echo form_close(); ?>